package com.rc.saas.mini.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Created by sven on 2018-03-17
 */
@Configuration
//@Component
//@PropertySource(value = {"classpath:application-custom.properties"})
//@ConfigurationProperties(prefix = "upyun")
public class UpYunConfig {
    @Value("${upyun.bucketName}")
    private String bucketName;

    @Value("${upyun.userName}")
    private String userName;

    @Value("${upyun.password}")
    private String password;

    @Value("${upyun.upload.image.path}")
    private String uploadImagePath;

    @Value("${upyun.upload.enterprise.path}")
    private String uploadEnterprisePath;

    @Value("${upyun.upload.personal.path}")
    private String uploadPersonalPath;

    //@Value("${upyun.upload.shop.path}")
    //private String uploadShopPath;

    //@Value("${upyun.upload.erp.path}")
    //private String uploadErpPath;

    @Value("${upyun.download.root}")
    private String downloadRoot;

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUploadImagePath() {
        return uploadImagePath;
    }

    public void setUploadImagePath(String uploadImagePath) {
        this.uploadImagePath = uploadImagePath;
    }

    public String getUploadEnterprisePath() {
        return uploadEnterprisePath;
    }

    public void setUploadEnterprisePath(String uploadEnterprisePath) {
        this.uploadEnterprisePath = uploadEnterprisePath;
    }

    public String getUploadPersonalPath() {
        return uploadPersonalPath;
    }

    public void setUploadPersonalPath(String uploadPersonalPath) {
        this.uploadPersonalPath = uploadPersonalPath;
    }


    public String getDownloadRoot() {
        return downloadRoot;
    }

    public void setDownloadRoot(String downloadRoot) {
        this.downloadRoot = downloadRoot;
    }
}
